cmake_minimum_required(VERSION 3.10)

project(log4z)

# 添加 pthread 编译参数
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
set(srcs log4z.cpp main.cpp)

add_library(log4z SHARED ${srcs})
add_executable(main ${srcs})

